<!DOCTYPE html>
<html lang="zh-en">
<head>
  <title>haopXpycary's memories</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" />
  <meta charset="utf-8" /> 
  <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css"> 
  <link rel="stylesheet" type="text/css" href="../moubles/firefox_css.css" />
  <link rel="stylesheet" type="text/css" href="./../index.css" />
  
  <script src="../tools.js" type="text/javascript" language="javascript"></script>
</head>
<body>
  <iframe src="./../header.html" width="100%" height="60px" frameborder="0" scrolling="no" name="headFrame"></iframe>
  
  <script>
    // require('./tools.js')
    function saveDataLocal() {
      if (!localStorage.user_name_list) {
        localStorage.user_upload_times = 0;
        localStorage.user_name_list = JSON.stringify(new Array());
        localStorage.user_ip_list = JSON.stringify(new Array());
        localStorage.user_date_list = JSON.stringify(new Array());
        localStorage.user_passage_list = JSON.stringify(new Array());
      }
      window.addtoArray("user_name_list",localStorage.user_upload_times, document.getElementById("user_name").value)
      window.addtoArray("user_passage_list",localStorage.user_upload_times, document.getElementById("user_passage").value)
      var myDate = new Date();
      window.addtoArray("user_date_list",localStorage.user_upload_times,myDate.getFullYear().toString() + '/' + (myDate.getMonth() + 1).toString() + '/' + myDate.getDate().toString() + ' ' + myDate.getHours().toString() + ':' + myDate.getMinutes().toString() + ':' + myDate.getSeconds().toString());
      window.addtoArray("user_ip_list",localStorage.user_upload_times, "此刻")
      localStorage.user_upload_times = Number(localStorage.user_upload_times) + 1
    }
  </script>
  
  <h3> 迷失岛</h3><br /><hr />
  <form action="./watting.html" onsubmit="saveDataLocal()" method="get" id="raw_user_passage">
    <input id="user_name" type="text" name="name" placeholder="你的名字..." min=1 max=20/><br /><br /><hr />
    <textarea id="user_passage" type="text" name="user_passage" placeholder="说点什么吧..." min=3 max=300 style="height:300px"/></textarea>
    <embed src="../icon/upload.svg" 
      type="image/svg+xml"
      pluginspage="http://www.adobe.com/svg/viewer/install/" class="svg righttop" onclick="document.getElementById('raw_user_passage').submit();" />
  </form>
</body>
</html>
